//
//  LZTextField.m
//  laziz_Consumer
//
//  Created by ZhaoDongBo on 2016/11/8.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import "LZTextField.h"

@implementation LZTextField

- (CGRect)textRectForBounds:(CGRect)bounds {
    if ([LZLanguageManager shareInstance].getLanguageType == LanguageType_Ar) {
        return CGRectMake(bounds.origin.x+30, bounds.origin.y, bounds.size.width-30, bounds.size.height);
    }
    else {
        return CGRectMake(bounds.origin.x, bounds.origin.y, bounds.size.width-30, bounds.size.height);
    }
}

- (CGRect)placeholderRectForBounds:(CGRect)bounds {
    if ([LZLanguageManager shareInstance].getLanguageType == LanguageType_Ar) {
        return CGRectMake(bounds.origin.x+30, bounds.origin.y, bounds.size.width-30, bounds.size.height);
    }
    else {
        return CGRectMake(bounds.origin.x, bounds.origin.y, bounds.size.width-30, bounds.size.height);
    }
}

@end
